package com.doubao.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * description:AppConfig
 * <p>
 * author:sult
 * time: 2018/11/1 13:43
 **/
@Component
public class AppConfig {


    public static String openUrl;

    public static int PORT=8888;

    public static String websoket_url;


    @Value("${schat.netty.server.port}")
    public void setPORT(int PORT) {
        AppConfig.PORT = PORT;
    }

    @Value("${schat.open.url}")
    public void setOpenUrl(String openUrl) {
        AppConfig.openUrl = openUrl;
    }

    @Value("${schat.websoket.path}")
    public static void setWebsoket_url(String websoket_url) {
        AppConfig.websoket_url = websoket_url;
    }

    public static String privateKey = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAMN29oorf0QU/EAV" +
            "dBUTR7JZM/NX9Jj2Ms5rkCmbmZyIkFx9c/dokYBnZ/936lJOKrFRwW+L7hUpSWJW" +
            "8r06FUWnr34tPExStM/kpSR6uZq8yU6djrkZzgzxlASaU1PNa1oiGOws7unTy/zv" +
            "AhccrpS/eY21ni0Lwx9vxmmgpA/BAgMBAAECgYBg3zSQhb4tH7lkiT1etI9z9IGq" +
            "uIygwmOrqeNou5UF3yisrgArPcfeu2DvW57l65d9Cee0QMVd93hHJJBo98BSR2uo" +
            "f7H+0/VcAK8EdElx7/ElMbOWOybyCKfEP3qNTnQbHNwrz18dkg0Vy5EIgL4F/Fn9" +
            "PpPoYzfcZcFYvgvBgQJBAOHw0YCDc11XRvZyYTCS4KlwSvjAu0mgqweX7rZj0yLu" +
            "RfoNODvOHD14aBOn4bP6jtQLtv4OW7ZHsyjVqVgV07sCQQDdeC45gJ1jbMtXiby0" +
            "urqh02zLs/NbK8PnQlovGwkLVCTr1akBb6UY5AoyD6WBXnf3SI+mhy/8Mgfp4+Zf" +
            "eMyzAkBfAqymtSBDJRtzMSALlAgjWFQ+jJV1XbnuBIbebdXwf3AvuXVnOMIJW2Ow" +
            "uE0iKP/8zTxTU2hfm4EMb+S5ZNxXAkBJobRUn+Mz9C7i6sNXnyF/vghU7X5CWJmo" +
            "YJIVSTrHjnE8C2xGMvVEAkU1gag4C8185J4F8rpMceHZrFCie0orAkEArItl/bNp" +
            "ksoF9Clf303HlgwOkAgGhAH47ya0TsC+U5z1TAagiMgB/rtExprUmwnbviA01g9p" +
            "EIC5wQ16UaULhw==";
    public static String doubaoAppkey="2030IM4SKD93FE03RLDF078E";
    public static String doubaoAppsecret="kpSR6uZq8yU6djrkZzgzxlASaU1PNa1oiGOws7unTy";

}
